package com.weds.edpf.core.service;

import com.weds.core.base.BaseService;
import com.weds.edpf.core.entity.DevEntity;
import com.weds.edpf.core.mapper.DevMapper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author sxm
 * @Description Dev管理
 * @Date 2020-06-11
 */
@Service
public class DevService extends BaseService {

    @Autowired
    private DevMapper devMapper;

    private Logger log = LogManager.getLogger();

    public int deleteByPrimaryKey(Integer xh) {
        return devMapper.deleteByPrimaryKey(xh);
    }

    public int insert(DevEntity record) {
        return devMapper.insert(record);
    }

    public int insertSelective(DevEntity record) {
        return devMapper.insertSelective(record);
    }

    public DevEntity selectByPrimaryKey(Integer xh) {
        return devMapper.selectByPrimaryKey(xh);
    }

    public int updateByPrimaryKeySelective(DevEntity record) {
        return devMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(DevEntity record) {
        return devMapper.updateByPrimaryKey(record);
    }

    public List<DevEntity> selectListByEntity(DevEntity record) {
        return devMapper.selectListByEntity(record);
    }


    public int deleteBatchByKeys(List<DevEntity> list) {
        return devMapper.deleteBatchByKeys(list);
    }

    public int insertBatch(List<DevEntity> list) {
        return devMapper.insertBatch(list);
    }

    public int countDepDev(Integer depSerial) {
        return devMapper.countDepDev(depSerial);
    }

}
